home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / pcscheme / ti / pcscm3_3 / install.bat next >
Encoding:
DOS Batch File  |  1988-06-07  |  3.0 KB  |  97 lines

  1. :
  2. : PC Scheme installation batch stream
  3. : For help, do A:INSTALL ?
  4. :
  5. echo off
  6. echo *********************** Installing PC Scheme ************************
  7. if "%1" == "" goto error
  8. if "%2" == "" goto error
  9. if "%3" == "f" goto floppy
  10. if "%3" == "F" goto floppy
  11. if "%3" == "w" goto windisk
  12. if "%3" == "W" goto windisk
  13. goto error
  14. :
  15. :floppy
  16. :
  17. echo ***********************  onto Floppy Disks   ************************
  18. cd a:\
  19. %1
  20. echo To install PC Scheme onto floppies, 3 blank formatted disks are needed.
  21. echo If you haven't prepared these yet, please do a Control-C now to exit
  22. echo this installation procedure and format the disks.  Then rerun the
  23. echo installation procedure.
  24. pause
  25. echo If you have not already done so, please insert a blank disk into drive B.
  26. pause
  27. md %2
  28. cd %2
  29. copy a:read.me
  30. echo -------------------- Creating Boot diskette for ---------------------
  31. if "%4" == "" goto con
  32. goto %4
  33. :
  34. :con
  35. :
  36. echo ----------------------- Conventional Memory  ------------------------
  37. a:pkxarc -r a:pkdisk1 pcs.exe
  38. goto merge1
  39. :
  40. :ext
  41. :
  42. echo -----------------------   Extended Memory    ------------------------
  43. a:pkxarc -r a:pkdisk1 pcsext.exe
  44. goto merge1
  45. :
  46. :exp
  47. :
  48. echo -----------------------   Expanded Memory    ------------------------
  49. a:pkxarc -r a:pkdisk1 pcsexp.exe
  50. goto merge1
  51. :
  52. :merge1
  53. :
  54. a:pkxarc -r a:pkdisk1 compiler.app newtrig.exe
  55. : overwrite the following
  56. copy a:install2.bat
  57. copy a:memory.bat
  58. copy a:memtype.exe
  59. install2 f %2 %4
  60. :
  61. :windisk
  62. :
  63. echo ***********************  onto a Winchester   ************************
  64. cd a:\
  65. %1
  66. md %2
  67. cd %2
  68. copy a:read.me
  69. : install all memory versions
  70. a:pkxarc -r a:pkdisk1 pcs.exe pcsext.exe pcsexp.exe compiler.app newtrig.exe
  71. : overwrite the following
  72. copy a:install2.bat
  73. copy a:memory.bat
  74. copy a:memtype.exe
  75. install2 w %2 %4
  76. :
  77. :error
  78. :
  79. echo -----------------------        Error!        ------------------------
  80. echo You must specify a drive and directory on which PC Scheme is to be
  81. echo installed; note a space separates the two.  The directory need not exist.
  82. echo You also specify Winchester (W) vs. 2-floppy (F) installation.  W
  83. echo installation copies all PCS memory versions to disk.  For F, you can
  84. echo specify the memory version--there is room for only one on the Boot disk
  85. echo that is created.  F requires 3 blank, formatted disks.
  86. echo -----------------------       Examples       ------------------------
  87. echo A:INSTALL B: \ F      installs conventional-memory PCS in root
  88. echo                       directory of floppy in drive B:
  89. echo A:INSTALL B: \ F EXT  as above but uses extended-memory PCS
  90. echo A:INSTALL B: \ F EXP  as above but uses expanded-memory PCS
  91. echo A:INSTALL E: \PCS W   installs all memory versions of PCS into
  92. echo                       directory \PCS on a TIPC Winchester
  93. echo A:INSTALL C: \MYDIR W installs all memory versions of PCS into
  94. echo                       directory \MYDIR on an IBM Winchester
  95. echo ************** Installation of PC Scheme was not done ***************
  96. echo on
  97.